package com.kldy8.kldyw.find.project.bean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/9/23.
 */
public class FilmProject
{
    public String cp_id;
    public String image;
    public String name;
    public String current_capital;
    public String capital;
    public String url;
    public String price;
    public String remaining_days;
    public String percent;

    public static FilmProject resolution(JSONObject jsonObject)
    {
        if (jsonObject == null)
        {
            return  null;
        }
        FilmProject m_new = new FilmProject();
        m_new.cp_id = jsonObject.optString("cp_id");
        m_new.image = jsonObject.optString("image");
        m_new.name = jsonObject.optString("name");
        m_new.current_capital = jsonObject.optString("current_capital");
        m_new.capital = jsonObject.optString("capital");
        m_new.url = jsonObject.optString("url");
        m_new.price = jsonObject.optString("price");
        m_new.remaining_days = jsonObject.optString("remaining_days");
        m_new.percent = jsonObject.optString("percent");
        return m_new;
    }
}
